package com.yangguang.huahui.mvp.model;

import com.yangguang.huahui.api.ProblemApi;
import com.yangguang.huahui.entity.Quotes;
import com.yangguang.huahui.entity.Reply;
import com.yangguang.huahui.net.NetManager;

import rx.Observable;

/**
 * Created by Administrator on 2017/3/20.
 */

public class ProblemModel {
    public Observable<Quotes> getList(int page){
        ProblemApi problemApi = NetManager.getInstance().create(ProblemApi.class);
        return problemApi.getList(page);
    }

    public Observable<Reply> getReplyList(){
        ProblemApi problemApi = NetManager.getInstance().create(ProblemApi.class);
        return problemApi.getReplyList();
    }

    public Observable<Reply> getQuestionList(String uid){
        ProblemApi problemApi = NetManager.getInstance().create(ProblemApi.class);
        return problemApi.getQuestionList(uid);
    }
}
